Register Members List Search Today's Posts Mark Forums Read

Showing results 1 to 25 of 150
Search took 0.01 seconds.
Search: Posts Made By: derfelix
Forum: vB4 Programming Discussions 29 May 2010, 12:59
Replies: 0
Views: 657
Posted By derfelix
How do I get the section id in a php widget?

Hello everybody!

I am writing a php widget to get content depending on the sectionid of the cms page..
taking the default sections of the vbulletin clean install,

sectionid 1 would be the...
Forum: vBulletin 4 Articles 07 Apr 2010, 19:50
Replies: 14
Views: 8,293
Posted By derfelix
ahhh.. thx.. no i actually have to calculate...

ahhh.. thx..
no i actually have to calculate the url from db..
i was doing the error by wanting to do it inside lightbox.. but if done on the page it works..

Thank you
Forum: vBulletin 4 Articles 07 Apr 2010, 10:28
Replies: 14
Views: 8,293
Posted By derfelix
Excellent... What I have been trying to do...

Excellent...
What I have been trying to do without success is using lightbox to access images outside the vbulletin folder

example :
root -- specialimages/ image1.jpg
root --...
Forum: vBulletin 4 Articles 31 Mar 2010, 15:12
Replies: 310
Views: 98,864
Posted By derfelix
as far as I have seen, footer template is created...

as far as I have seen, footer template is created at the moment any other template is done...

example:
if at the top of a file.. before you did any template stuff...
you do
echo $footer; exit;...
Forum: vBulletin 4 Articles 28 Feb 2010, 07:16
Replies: 57
Views: 12,267
Posted By derfelix
well as far as I know (assume) .... (not sure...

well as far as I know (assume) ....
(not sure read somewhere, but sorry, cant remember where)
magic globals dont need registering,
like $template_hook, $show, $vboptions, $stylevar, $vbphrase
not...
Forum: vBulletin 4 Articles 28 Feb 2010, 05:43
Replies: 57
Views: 12,267
Posted By derfelix
very nice.. you saved my day.. !!! just one...

very nice.. you saved my day.. !!!
just one thing..
I thought the $show array does NOT need to be registered...
$templater->register('show', $show);
havent tested here yet.. but usually on other...
Forum: vBulletin 4.x Styles 22 Feb 2010, 21:43
Replies: 330
Views: 89,678
Posted By derfelix
very nice.. thankyou !!!

very nice.. thankyou !!!
Forum: vB4 Programming Discussions 01 Feb 2010, 07:08
Replies: 1
Views: 407
Posted By derfelix
i use...

i use http://www.vbulletin.org/forum/showthread.php?t=231407
F.
Forum: vB4 Programming Discussions 28 Jan 2010, 21:18
Replies: 17
Views: 1,045
Posted By derfelix
shouldnt you also register post variable in your...

shouldnt you also register post variable in your template?

$arp_var = "{vb:raw thread.title}";

$templater = vB_Template::create('ARP_TEMPLATE');
$templater->register('arp_var', $arp_var);...
Forum: vB4 Programming Discussions 28 Jan 2010, 21:06
Replies: 1
Views: 655
Posted By derfelix
well i can only tell you how i imported some...

well i can only tell you how i imported some russian language files... in utf8 in 3.8 (as I read they didnt change a lot but will only in 4.1 or 4.2)

First, change the heading of the xml file.....
Forum: vB4 Programming Discussions 28 Jan 2010, 20:31
Replies: 4
Views: 3,333
Posted By derfelix
Now i understand... Thank You! Felix

Now i understand...
Thank You!
Felix
Forum: vB4 Programming Discussions 28 Jan 2010, 17:11
Replies: 4
Views: 3,333
Posted By derfelix
Thank you for explaining.. So if I understand...

Thank you for explaining..
So if I understand correctly, I still need the addslashes even if I use escape_string()
because in vbulletin i havent seen one single add or stripslashes anymore....
and...
Forum: vB4 Programming Discussions 28 Jan 2010, 11:33
Replies: 4
Views: 3,333
Posted By derfelix
when to use htmlspecialchars_uni

Sorry if this question sounds stupid...

I am adapting an old hack of mine, for a multilanguage site.. (in utf8)
I have title, description and username to put into database (and pull from database...
Forum: vB4 Programming Discussions 24 Jan 2010, 19:27
Replies: 4
Views: 417
Posted By derfelix
You are a genius, Lynn!! It works great.. <a...

You are a genius, Lynn!! It works great..
<a href="{vb:var relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a>
I changed footer template for the top link.....
Forum: vB4 Programming Discussions 24 Jan 2010, 18:51
Replies: 4
Views: 417
Posted By derfelix
I know lynn But you also know that if i tell...

I know lynn
But you also know that if i tell them about my hack.. they will send me here..
Forum: vB4 Programming Discussions 24 Jan 2010, 10:19
Replies: 4
Views: 1,071
Posted By derfelix
I suppose its for your attachment hack.. (nice) ...

I suppose its for your attachment hack.. (nice)

You defined the value in settings.. not in stylevars... (atleast in the 1.1 beta)
if you want user to be able to change size in settings..
what I...
Forum: vB4 Programming Discussions 24 Jan 2010, 08:44
Replies: 4
Views: 1,071
Posted By derfelix
I suspect the px unit is missing ie you did not...

I suspect the px unit is missing
ie you did not define the stylevar as Data Type size (there you can select unit ->pixel)
or you left the unit blank.
to test do following:
add px to height and...
Forum: vB4 Programming Discussions 24 Jan 2010, 08:17
Replies: 4
Views: 417
Posted By derfelix
Impossible to validate hackpage because of footer

Hello everybody.

I have a hackpage that shows stuff by a user..
works fine...
but the page wont validate because of..... footer... :confused:
the url of the hackpage is:
http /...
Forum: vBulletin 4 Articles 21 Jan 2010, 06:04
Replies: 310
Views: 98,864
Posted By derfelix
I would fetch it before... if...

I would fetch it before...

if ($_REQUEST['do'] == 'page1')
{

$templater = vB_Template::create('page_bit');

$mypage_bit .= $templater->render();

$templater =...
Forum: vB4 Programming Discussions 20 Jan 2010, 07:48
Replies: 6
Views: 2,230
Posted By derfelix
add it in footer after the vbulletin init... ...

add it in footer after the vbulletin init...
because maybe you are using stuff that is in the vbulletin.js
and that is only available after the init in footer..
(just a thought)

i have a...
Forum: vB4 Programming Discussions 20 Jan 2010, 07:44
Replies: 3
Views: 1,070
Posted By derfelix
Well I think print_r is still the best... I...

Well I think print_r is still the best...
I just place it before the template call...
with pre...
print "<pre>";print_r($arraytolookat);exit;
Forum: vB4 Programming Discussions 20 Jan 2010, 03:30
Replies: 6
Views: 2,230
Posted By derfelix
Nope, I think BusinessName NOT there, at least...

Nope, I think BusinessName NOT there, at least NOT at the time the javascript is called...
You have it at the top..., when the html below is not rendered yet..
I personnally would do it...
Forum: vB4 Programming Discussions 19 Jan 2010, 18:43
Replies: 2
Views: 1,280
Posted By derfelix
yes... except for the fetch_seo_url() because i...

yes... except for the fetch_seo_url() because i dont have any seo url there...(in the hack)
it works.. for the redirect.. but I loose the anchor...
hoping there arent any security issues.. i will...
Forum: vB4 Programming Discussions 19 Jan 2010, 18:31
Replies: 8
Views: 458
Posted By derfelix
I would do it that way... either: ...

I would do it that way...
either:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
...
Forum: vB4 Programming Discussions 19 Jan 2010, 18:06
Replies: 8
Views: 458
Posted By derfelix
it seems to be related to the javascript bug......

it seems to be related to the javascript bug... in vbulletin..
template parser doesnt like the word var inside curly brackets..

var arrInput

inside a curly bracket doesnt work..
2 solutions:...
Showing results 1 to 25 of 150

 

New To Site? Need Help?

All times are GMT. The time now is 05:41.

Layout Options | Width: Wide Color: