#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 12, 2014 8:29:49 GMT -8
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 12, 2014 15:17:49 GMT -8
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 12, 2014 15:25:34 GMT -8
I looked at your source code in your template and I looked at how I coded the plugin and there should be nothing preventing you from using your customized welcome area. Did you make sure that you had the welcome message enabled in the plugin's settings?
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 12, 2014 15:45:12 GMT -8
Brian When I enable the welcome message in the plugin, it only displays "Login" after "Admin" and overwrites my custom welcome message.
How it should look: "Welcome, Weedfanatic! Log Off? Inbox:5 New:1" How it looks with the welcome message enabled: "Login"
When I disable it, the welcome message is gone completly, and only the main navigation bar links are present.
Thanks for taking the time to look into this for me!
Edit: I looked at the source a bit, and this is where the problem is I think? (Bold Code Below)
var forumId = $('#welcome').children('a')[0]; if(proboards.data("user").is_logged_in) { forumId = forumId.href.split('logout/')[1]; } else { forumId = forumId.href.split('login/')[1]; } var menuList = $('#navigation-menu > ul'); if(proboards.data('user').is_logged_in) { menuList.append(' <LI> Logout</LI> '); } else { menuList.append(' <LI> Login</LI> <LI> Register</LI> '); }
I wouldn't even know how to add my template code to here, otherwise I would try. I've never really messed with plugins source code, so this is very new to me.
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 12, 2014 18:42:26 GMT -8
Update- Since I can't get my custom welcome message to show with this plugin enabled, and there are no replies yet (not that I'm being impatient), I've decided to attempt to recreate it, within the source code of this plugin. It's a lot different than simply modifying templates, but it seems like it should be doable for me, so I'll try my best to do this myself!
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, 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 refference). I'm going to attempt to do this myself first, but if anyone could help me, and responds befor, and if I solve this, that would be great!
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 13, 2014 1:37:01 GMT -8
Ok, I spent a long time trying to fix this myself, and have had no success. I'm stumped on this one.
I figured out the reason my Forum Wrapper Template is being overwritten by the plugin. Enabling The V4 Login Buttons, overwrites my custom Forum Wrapper (Welcome Message), but allows me to have custom navigation images. When I disable the v4 Login Buttons, I cannot have custom navigation buttons, but I can have my custom Forum Wrapper (Welcome Message). I still cannot find out how to have both my Forum Wrapper Template (Welcome Message), and custom navigation images. Any further help would be really appreciated, I've been having so much trouble trying to modify the code myself to achieve this!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 15, 2014 8:59:00 GMT -8
weedfanatic, editing that part of the code won't change whether or not the welcome message shows. 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).
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 15, 2014 20:41:43 GMT -8
BrianI wish I knew it was something so simple, and easy to do.. Sorry to waste your, and alot of my own time! xD Thank you very much for all your help, I really appreciate how supportive, and helpful you, Peter, and Wormopolis have been! Thanks to all the other staff, and supporters as well! I only listed the people above, because they are people I have met, and have helped me out alot!
|
|
inherit
210890
0
Sept 22, 2024 20:59:33 GMT -8
Telesphoreo
32
June 2014
packsgaminghd
|
Post by Telesphoreo on Sept 1, 2014 18:40:19 GMT -8
How does it work -_- the stupidest question on the universe
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 2, 2014 9:54:01 GMT -8
|
|
inherit
210890
0
Sept 22, 2024 20:59:33 GMT -8
Telesphoreo
32
June 2014
packsgaminghd
|
Post by Telesphoreo on Sept 2, 2014 23:48:19 GMT -8
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 3, 2014 8:29:05 GMT -8
Can you link to the forum you're customizing?
|
|
inherit
210890
0
Sept 22, 2024 20:59:33 GMT -8
Telesphoreo
32
June 2014
packsgaminghd
|
Post by Telesphoreo on Sept 3, 2014 23:37:32 GMT -8
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 4, 2014 8:47:21 GMT -8
The plugin appears to be working just fine. You just haven't added any images to it yet. You'll need to go to Plugins > Manage > Classic ProBoards Menu and visit the Theme Images tab to add them.
|
|
inherit
210890
0
Sept 22, 2024 20:59:33 GMT -8
Telesphoreo
32
June 2014
packsgaminghd
|
Post by Telesphoreo on Sept 4, 2014 15:21:17 GMT -8
wat
|
|