The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Well, I'm not sure I've totally understand, but, you know, I gotta try.
Edit: I must add if($post['isfirstshown']) to the cached template so It does not affect the functionality of the template, am I right? if so, It's gonna be a little bit difficult . what about changing the hook? so far, it's the only one that did the purpose. |
#12
|
|||
|
|||
Right. If I knew exactly how to tell you to do it I would, but I think it would take me a while to work it out. If you've seen the thread started by Scanu (https://vborg.vbsupport.ru/showthread.php?t=275691), he's having the same problem getting all the different levels of quotes to work out.
|
#13
|
|||
|
|||
Well, I've already experienced the problem of the quotes, I'll do my best getting it works, thanks again Mr kh99.
--------------- Added [DATE]1324417995[/DATE] at [TIME]1324417995[/TIME] --------------- Wow, unbelievable, it worked . I've never imagined I can experience something complicated like that, anyway, take a look at the code (however it is ) because I have a little issue: PHP Code:
I'm glad that the big problem is solved. |
#14
|
|||
|
|||
I think you probably need the $fetch['data'] to be evaluated when you create the string, like maybe:
Edit: oops, that string probably needs quotes around it, so maybe Code:
$replace = '<span class="date">\';if($post[\'isfirstshown\']) { $final_rendered .=\'' . $fetch['data'] . '\'; } $final_rendered .=\''; ETA: I see you figured that out... |
Благодарность от: | ||
HMBeaty |
#15
|
|||
|
|||
Congratulations, it works perfectly, just added '/ surrounding the $fetch['data'] and here we go, the last code is:
PHP Code:
Regards. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|