Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #16  
Old 16 May 2013, 19:50
DaveNGU DaveNGU is offline
 
Join Date: Mar 2012
Did you say this is in a custom file? If it is, there's no need to use $vbulletin->db->query_first - just use PHP.

But, assuming its not (in all honesty I haven't read all of this), try this..


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #17  
Old 16 May 2013, 20:32
tbworld tbworld is offline
 
Join Date: Oct 2008
Reading this I believe you need to post your code. Are you querying for the current username, a selected username or creating a list for their email.

If I am reading in between the lines correctly, I think you have been trying to embed the query inside the escaped html string <-- you are calling an embedded template.

What we need to do is restructure what you have so you can see your way clear.
Reply With Quote
  #18  
Old 17 May 2013, 04:51
smirkley smirkley is offline
 
Join Date: Apr 2008
Originally Posted by tbworld View Post
Reading this I believe you need to post your code. Are you querying for the current username, a selected username or creating a list for their email.

If I am reading in between the lines correctly, I think you have been trying to embed the query inside the escaped html string <-- you are calling an embedded template.

What we need to do is restructure what you have so you can see your way clear.
I think I will have to post a portion of the code. I dont know that I have rights to post it completely though, as it is propietary.

IE:

I run a third party product on my vb that uses a php based template, albiet that it is mixed with php and template html.

And it works, and by generating a page consisting of a header/body/footer.

In this template are variables like $username and a few others. $username is populated in the php file that calles this "template".php. And $username can and is used in the html part of the file.

I have a need now to create a way of making $useremail work the same way.



But the snag, or I would have it by now myself, the file that fills $username is encoded so that file can not be changed.

My only option is to find a way to make it work by way of a query, in the template file as it isnt encoded.

Otherwise I am SOL.
Reply With Quote
  #19  
Old 17 May 2013, 05:41
tbworld tbworld is offline
 
Join Date: Oct 2008
But the snag, or I would have it by now myself, the file that fills $username is encoded so that file can not be changed.
Is this a vbulletin page calling a vbulletin template or an external page calling their own type of mixed php/html template?

Is the outputting of the template encoded? (Not the template)
Can you parse the output $username in php to extract the data you need for your query?

Trying to understand a little further. Not all the questions I asked above will make sense
under your code condition, but it will let me fill in the gaps of information.
Reply With Quote
  #20  
Old 17 May 2013, 14:01
smirkley smirkley is offline
 
Join Date: Apr 2008
It is not a vb page nor template, the php files although running as a vb product modification, run independantly from vb short of the attachment to the database and other misc variables.

The page generated does not contain vb elements such as vb header or footer, and the body is independant and stand-alone.

The output is not encoded, just the original process in the php files are. As a anote, I can unencode the calling file, but only to view its contents, I cannot run it outside of being encoded.

Yes the $username can and is parsed in the outputting of the html generated page reletive to the user that the page is generated for.
Reply With Quote
  #21  
Old 17 May 2013, 23:44
tbworld tbworld is offline
 
Join Date: Oct 2008
Okay I have the picture. Unfortunately, because of all the particulars, I doubt that I can help you without seeing code. Sorry
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 22:37.

Layout Options | Width: Wide Color: