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: 430
  • Total: 430

[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.

RoarinRow

Very cool, I like the new feature  :up:

I just have these errors:

2: mysql_free_result(): 35 is not a valid MySQL result resource
File: /home/avalanch/public_html/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 354

2: Invalid argument supplied for foreach()
File: /home/avalanch/public_html/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 345

8: Undefined variable: cp_public_users
File: /home/avalanch/public_html/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 345

8: Undefined variable: cp_public_pages
File: /home/avalanch/public_html/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 302

8: Undefined variable: cp_public_pages
File: /home/avalanch/public_html/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 290

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Jpg

O_O'

Ummm....I suggest get rid of it.

RoarinRow

Quote from: Jpg on August 27, 2006, 04:40:44 PM
O_O'

Ummm....I suggest get rid of it.


I reverted back to original code for now  :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Jpg

Good idea, since it was giving you that many errors. :\

RoarinRow

Quote from: Jpg on August 27, 2006, 04:45:52 PM
Good idea, since it was giving you that many errors. :\

That's o.k. it wasn't life threatening   :o   ;D

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

#35
Yes.. those were all minor warnings.  All of them were a result of you not having any current public pages yet.  It was a late nite. ;)

I have fixed all of those.  Give it another shot.  Don't forget to set $cp_allow_public = true; if you want your users to be able to set their page as public and to be able to view other users pages.  Also, don't forget to set the user groups you want able to create their own public page ($cp_allowed_groups).

Additionally, added ability for an Admin to see all pages, public or not.  New code in original post.

RoarinRow

I get this when I pull up the article with the new code:

Query Failed! Table NOT Modified!

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

#37
Might have been when you reverted back to the old version.  That version only had 2 columns where the new version has 4.  Sounds like one of the columns may have been left behind.

Go into your phpMyAdmin and drop the "public" and "selected_user" columns from the custompage table and then open the custom page block again.  It should then convert the table by adding the two extra columns.

RoarinRow

Quote from: Thurnok on August 27, 2006, 11:09:58 PM
Might have been when you reverted back to the old version.  That version only had 2 columns where the new version has 4.  Sounds like one of the columns may have been left behind.

Go into your phpMyAdmin and drop the "public" and "selected_user" columns from the custompage table and then open the custom page block again.  It should then convert the table by adding the two extra columns.

Sweet, that worked!   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

added to block snippets index

This website is proudly hosted on Crocweb Cloud Website Hosting.