Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2005, 01:10 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Replacement codes not working.

Hi,

I have a code that only needs to be tweaked in certain styles. Of course, you can use the Replacements codes. However, that particular code is kind of long (about 200 characters) and when I add that code, it doesn't work. It's probably something with the amount of characters, but what do I need to change (in a file or database) to tweak codes with unlimited (or limited, but till 500 characters or something) characters?

Oh, by the way I use vB 2.3.5

Thanks in advance,
Clement
Reply With Quote
  #2  
Old 04-21-2005, 06:00 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you please be specific: what exactly you are trying to add it, where are you trying to add it to, and what do you mean by "doesn't work"?
Reply With Quote
  #3  
Old 04-21-2005, 07:06 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the Admin CP, you have a section called Replacements right? Well, that list contains all the replacements codes (you know, for the colors and such) for each style.

Well, I have a style which has a code that needs to be tweaked, only for that particular style. So when I put up a code (approximately 200 characters) that needs to be replaced and the code that replaces the other one, it doesn't work. I assume the code is too long to be replaced or something. That's my question actually; how can you make that long code work? I assume it's something in the database.

I hope I made some sense now. :$
Reply With Quote
  #4  
Old 04-21-2005, 07:22 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it does not make sense.
You still did not post the CODES themselves... And their replacements as well.
Reply With Quote
  #5  
Old 04-22-2005, 09:25 AM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, well since you ask for it; this is the code that needs to be replaced:
Quote:
[[($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]$adminoptions[[/($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]
(For clarification; the $adminoptions code comes from showthread)

It needs to be replaced by:
Quote:
[[($bbuserinfo[userid]==1 OR $bbuserinfo[userid]==11 OR $bbuserinfo[userid]==68)]]$adminoptions[[/($bbuserinfo[userid]==1 OR $bbuserinfo[userid]==11 OR $bbuserinfo[userid]==68)]]
However, it doesn't work when I put that as a custom replacement.
Reply With Quote
  #6  
Old 04-24-2005, 05:19 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump* Doesn't anybody know a solution for this?
Reply With Quote
  #7  
Old 04-24-2005, 05:32 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think it will correctly parse such complicated replacement, just as I don't see the point of this.
Reply With Quote
  #8  
Old 04-24-2005, 05:37 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I need it for my forum. With the Logician hack I can only make the Thread Options bar appear for Moderators, Super Moderators and Admins. However, I have set a regular member as a moderator for one particular forum, but she cannot see the bar due to the Logician hack. That's why I need that replacement code thing work.

However, other long codes that needs replacements doesn't work either.
Reply With Quote
  #9  
Old 05-30-2005, 01:17 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So no one knows a solution for this?
Reply With Quote
  #10  
Old 05-30-2005, 01:23 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Cle
The Replacments work on the generated HTML.
You can't use this for template conditionals.
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 11:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04791 seconds
  • Memory Usage 2,239KB
  • Queries Executed 11 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete