TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 431
  • Total: 431

[Block] Custom Page

Started by Thurnok, August 09, 2006, 08:13:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thurnok

Can't believe I missed this.  Oh well, over-looked it somehow when I added the allow public features.

If you tried this block for the first time after I added the feature to allow a member to make their page public to other users, and you couldn't get it to work (getting table not modified errors) then I fixed it.  New code in first post.

Sorry.   :uglystupid2:

RoarinRow

Quote from: Thurnok on September 12, 2006, 07:15:36 AM
Can't believe I missed this.  Oh well, over-looked it somehow when I added the allow public features.

If you tried this block for the first time after I added the feature to allow a member to make their page public to other users, and you couldn't get it to work (getting table not modified errors) then I fixed it.  New code in first post.

Sorry.   :uglystupid2:

I tried the new code and got this error:

2: mysql_data_seek() [<a href='function.mysql-data-seek'>function.mysql-data-seek</a>]: Offset 0 is invalid for MySQL result index 38 (or the query data is unbuffered)

File: /home/avalanch/public_html/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 274

What does this mean?   :o

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

Ok... think I found the problem... changed the technique for determining a table "upgrade" necessity.  Try that one.

RoarinRow

Quote from: Thurnok on September 13, 2006, 03:48:59 AM
Ok... think I found the problem... changed the technique for determining a table "upgrade" necessity.  Try that one.

Looks like that worked, thanks!

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

Ok... I enhanced this version with some javascript.  Now, when you select another member's "public" page from the dropdown, it is immediately displayed in the iframe.

If you click Save, the currently selected user will be saved to your profile so that their page is displayed until you select a different user's page to display as your custom page.  Your actual custom page's URL is unchanged unless you change it in the URL box and save.

Code is in the first post!

RoarinRow

Very cool, it keeps getting better and better   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

Well, this one is the one I should have actually released to start with, just I was rushing and slapped it together originally.

Now I need to do the same with the Linkit block, and put out what I should have to start with. ;)

RoarinRow

Quote from: Thurnok on September 16, 2006, 08:51:40 PM
Well, this one is the one I should have actually released to start with, just I was rushing and slapped it together originally.

Now I need to do the same with the Linkit block, and put out what I should have to start with. ;)

No problem, it was cool just to see the snippet in action.   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

Woops.. quick fix - had a mysql_error() where it should have been mysql_errno().   ::)
First post has code.

RoarinRow

#49
Quote from: Thurnok on September 18, 2006, 07:48:57 AM
Woops.. quick fix - had a mysql_error() where it should have been mysql_errno().   ::)
First post has code.

I tried the new code and when I chose another person's page it doesn't load and I get this IE error.   :o   Before I just used the drop down menu to pick a user's name and their page would load automatically, now when I chose the user's name I have to click the Save button to see their page and I get the IE error.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

This website is proudly hosted on Crocweb Cloud Website Hosting.