weedfanatic
Not New Member
Posts: 8
weedfanatic said 1 great things
|
Post by weedfanatic on Jun 10, 2014 22:51:56 GMT -8
Hello again! I have a new issue/question I was hoping to get some help with. x( I posted this in the support thread for the plugin, but I thought I would ask here as well, so I have a better chance of getting an answer. I have custom code in my Forum Wrapper Layout, and it's completely overwritten by the plugin- Classic Proboards Menu 2.0.2. I've looked through the source a bit to try and figure out how to implement the code myself, but I'm very new to this, and not really sure how to achieve this. The code below is from my Forum Wrapper, and I was really hoping to be able to add it in use with this plugin! {if $[current_user.is_member]} Hello $[current_user.name]! <a id="link4" href="$[logout_link.href]" class="link2"><b>Log Off ?</b></a> | <a id="link5" href="/conversations/inbox" class="link2"><b>Inbox: $[current_user.messages.inbox]</b></a> |<a id="link6" href="/conversations/new"> <b> New: $[current_user.messages.new] </b></a> {else} Welcome Guest to $[forum.name]. $[login_link.] or $[register_link.] {/if} The right side of the navigation bar is how I would prefer (need it) to look. If there was another way to add images to the navigation bar buttons without this plugin, I'd love to hear it! Any help would be really appreciated! I've tested through trial and error, and searched hundreds of posts for a possible fix/compromise, but there is literally nothing about navigation bar images, posted anywhere either than the plugin thread!
|
|
|
Post by Wormopolis on Jun 12, 2014 2:49:27 GMT -8
Why do you need the menu plugin? just to have images as menu items? if you dont put an image in for messages, does it have a default one?
|
|
weedfanatic
Not New Member
Posts: 8
weedfanatic said 1 great things
|
Post by weedfanatic on Jun 13, 2014 1:22:18 GMT -8
Why do you need the menu plugin? just to have images as menu items? if you dont put an image in for messages, does it have a default one? Hello, Wormopolis. The only reason I need this menu plugin, is because I'm not aware of any other possible way to add images for my navigation buttons/links, through template/css modification. The problem is I need my custom welcome message (from Forum Wrapper Template) to remain the same, while still having the ability to display images on the navigation bar. I'm not exactly sure that I understand what you mean for your second question. Within the plugin you have to add your own image urls for each navigation item, and there is no default pictures for them, if that's what you meant. If I use this plugin, I cannot have both my custom Forum Wrapper Template (Welcome Message), and custom navigation button images on the navigation bar. The welcome message code seems to be overwritten from somewhere within this plugin. I basically have to choose one option, or the other, (Custom welcome message[Or]Nav bar images), which I really don't want to have to do! Any help with this matter would be much appreciated! I messed around with the plugins source a bit today, but I failed to figure out how to fix it. =/ I know that my problem is caused by enabling v4 Login Buttons in this plugin, but that is the only way to be able to display navigation button images that I'm aware of.
|
|
|
Post by Wormopolis on Jun 14, 2014 12:02:03 GMT -8
I was looking at your example and you didnt have images for menu items, so I wasnt sure why you were running the plugin.
what happens if you leave a menu item image URL blank? does it revert back to being just text?
|
|
weedfanatic
Not New Member
Posts: 8
weedfanatic said 1 great things
|
Post by weedfanatic on Jun 14, 2014 20:30:43 GMT -8
Sorry, my example was meant to show that the right side of the navigation bar- Forum Wrapper (Welcome Message), is how it should look, but is over written by code within this plugin. If I leave a menu item image url blank, than it will not show an image, which is obvious, but it also still overwrites my Forum Wrapper Template(Welcome Message). Below is how it looks with no menu item image url. Below is how it looks with a menu item image url below. Below is how I want it to look, but am not able to currently ! I have tried enabling/disabling V4 Login Buttons, and the V5 Welcome Message in the plugin, but it will not show my custom Forum Wrappers (Welcome Message) either way. Just to verify, with this plugin I am able to add login/logout menu items to the nav bar, and have images with them, but I need to be able to have my custom welcome message from my Forum Wrapper instead, since I can customize it more, and it looks much better in my opinion. If I cannot get my Forum Wrappers (Welcome Message) to display with this plugin, and you're not sure how to do this either, I figured I could try to recreate it within the plugins source (which I have tried..), as a last resort. The problem is, I'm not sure how to implement variables from templates, into a plugin. See below for a better explanation. I've messed around, modified the source a bit, and figured out how to add navigation bar links, which was pretty easy, but I still need to figure out how to get the username, inbox amount, and new message amount, and other variables into the plugin source. To be more specific, below is how you would do it in a template. $[current_user.name] $[current_user.messages.inbox] $[current_user.messages.new] I need to know the proper way to do this, with this plugin (any plugin for future reference). I hope I explained everything alright, and I'm sorry to bother you with all this. As you know I'm very new with template modification, and especially new with plugin modification. I have tried my best for the last 3 days to figure this out, but unfortunately, I cannot seem to do this on my own! Thanks for all your help so far!
|
|
|
Post by Wormopolis on Jun 15, 2014 21:09:22 GMT -8
I guess I thought it was the message button having an image that was keeping your modification from working.
what does your header template look like? because we might be able to just wrap the part it is changing with another wrapper, and then you put your stuff inside that. then it wont change your stuff.
|
|
weedfanatic
Not New Member
Posts: 8
weedfanatic said 1 great things
|
Post by weedfanatic on Jun 17, 2014 18:38:42 GMT -8
Hello Wormopolis! I'm sorry I took a while to reply back here, but Brian has responded and solved my problem! I'm sure you probably noticed though, from when I tagged you in my reply. Thank you so much for all your help, and taking the time to look into this for me. I can't tell you how much I appreciate the effort!
|
|
|
Post by Wormopolis on Jun 18, 2014 2:26:23 GMT -8
Is that what he did, or did he change his plugin?
|
|
weedfanatic
Not New Member
Posts: 8
weedfanatic said 1 great things
|
Post by weedfanatic on Jun 18, 2014 18:34:36 GMT -8
Apparently the welcome text font size, is changed with the plugin enabled.
Brian Says; "You need to give the welcome message a font size in Themes > Advanced Styles & CSS by going to Header (Top) > Navigation Bar > Welcome Text and changing the font size to something like 13px. Right now it's set to 1em which is causing it to inherit the font size of its parent element (currently 0)."
|
|
|
Post by Wormopolis on Jun 19, 2014 0:45:01 GMT -8
Ah, so it was there all along, but just hidden. very sneaky...
|
|
weedfanatic
Not New Member
Posts: 8
weedfanatic said 1 great things
|
Post by weedfanatic on Jun 19, 2014 19:42:59 GMT -8
Sneaky indeed. I wouldn't have ever thought that was the reason, for the issue!
|
|