Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2016, 03:47 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Template Discovery

Can anybody briefly describe how to find the name of a template to edit?
I use Firefox and Firebug to help with css and stuff but haven't tapped into the knowledge on how to find the names of templates.

For example:
I am trying to find the name of this template to add something to it.



I can select it within Firebug but where do I read the name of the template so I can edit it?
Firebug tells me this. . .
Code:
.b-editor .cke_top {
I then go to admincp and search for that within search templates.
Is this the correct procedure?

Much obliged. . . .
Attached Images
File Type: jpg toolbar.jpg (9.9 KB, 0 views)
Reply With Quote
  #2  
Old 01-22-2016, 04:26 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Can anybody briefly describe how to find the name of a template to edit?
I use Firefox and Firebug to help with css and stuff but haven't tapped into the knowledge on how to find the names of templates.

For example:
I am trying to find the name of this template to add something to it.



I can select it within Firebug but where do I read the name of the template so I can edit it?
Firebug tells me this. . .
Code:
.b-editor .cke_top {
I then go to admincp and search for that within search templates.
Is this the correct procedure?

Much obliged. . . .
if you know what you are looking for, that is probably the easiest way to find it.
Reply With Quote
  #3  
Old 01-22-2016, 04:29 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that's usually the right way to search for templates.
However keep in mind that in some cases the HTML/CSS is dynamically generated by JavaScript or PHP which will make it harder to find the actual location.
Reply With Quote
  #4  
Old 01-22-2016, 05:37 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
if you know what you are looking for, that is probably the easiest way to find it.
That was what I thought Firebug was for, to help identify it but I'm struggling a bit on this. .

Quote:
Originally Posted by Dave View Post
Yes, that's usually the right way to search for templates.
However keep in mind that in some cases the HTML/CSS is dynamically generated by JavaScript or PHP which will make it harder to find the actual location.
I have been trying to find the example above but still haven't pinned it down.
I thought I had mastered Firebug but not at all. css things I can do but finding templates is difficult.

Basically, I want to copy the smilie function from where it is ....


and repeat it in here. . .



Not proving to be an easy task.
I have managed to locate the smilie and where it lives (I think) but can't figure out how to repeat it in the other location.

Can't help wondering if there was an easier way to find the required template but it seems I am doing it the right way.

Thanks for that but none the wiser. :up:
Attached Images
File Type: jpg smile.jpg (6.4 KB, 0 views)
File Type: jpg toolbar.jpg (11.0 KB, 0 views)
Reply With Quote
  #5  
Old 01-22-2016, 06:35 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is part of the bbcode editor bar, I'm not sure you can rearrange them like that, but I have never looked at vb5 so I'm not 100% sure.

Try searching the templates for just cke_top
Reply With Quote
  #6  
Old 01-22-2016, 07:02 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
That is part of the bbcode editor bar, I'm not sure you can rearrange them like that, but I have never looked at vb5 so I'm not 100% sure.

Try searching the templates for just cke_top
cke_top is what I have been looking at but the template doesn't contain enough information to justify the content of the rendered result. Or that is the way it looks to me.

There is only 107 lines but I don't know really what I am looking for.
I guess I just have to keep messing about with it.

Quote:
Originally Posted by Dragonsys View Post
I'm not sure you can rearrange them like that
Perhaps you are right but I am still ignorant enough to believe there must be a way to do it. The thing is there in front of me so the information has to come from somewhere. .
Reply With Quote
  #7  
Old 01-22-2016, 08:40 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Perhaps you are right but I am still ignorant enough to believe there must be a way to do it. The thing is there in front of me so the information has to come from somewhere. .
I meant to say via templates. It might be constructed within the php files.
Reply With Quote
  #8  
Old 01-22-2016, 08:57 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
It might be constructed within the php files.
Ah ha! I thought there might be a catch...

I have looked at php files and I can't make any sense of them either. Even less sense than anything else I have looked at with this pass time. I will look again tomorrow.

Does Firebug help in finding which php file is the one that should be looked at?

Ta. . .
Reply With Quote
  #9  
Old 01-22-2016, 09:15 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Does Firebug help in finding which php file is the one that should be looked at?
No, it can only see what the browser does, and the browser cannot see PHP code, as it is rendered, by the server, into HTML.
Reply With Quote
  #10  
Old 01-23-2016, 07:07 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
No, it can only see what the browser does, and the browser cannot see PHP code, as it is rendered, by the server, into HTML.
Bugger!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05379 seconds
  • Memory Usage 2,288KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete